package com.talking

import android.app.Application
import android.content.SharedPreferences
import android.os.StrictMode
import android.os.StrictMode.ThreadPolicy
import com.talking.bean.UserBean

class App : Application() {
    override fun onCreate() {
        super.onCreate()
        instance = this
        sp=getSharedPreferences("data", MODE_PRIVATE)
        StrictMode.setThreadPolicy(ThreadPolicy.Builder().permitAll().build())

    }

    companion object {
        lateinit var me: UserBean
        lateinit var instance: App
        lateinit var sp: SharedPreferences
    }
}